<template>
  <div>
      <myheader title='我的收藏'>
        <span slot="left" class="iconfont iconjiantou2" @click="$router.back()"></span>
      </myheader>
      <articleblock v-for='value in postList' :key='value.id' :post='value'></articleblock>
  </div>
</template>

<script>
import myheader from '@/components/myheader.vue'
import articleblock from '@/components/articleBlock.vue'
import { getUserstars } from '@/apis/users.js'
export default {
  data () {
    return {
      postList:[]
    }
  },
  components: {
    myheader,articleblock
  },
  async mounted () {
    let res = await getUserstars()
    console.log(res)
    this.postList = res.data.data
  }
}
</script>

<style>

</style>